package com.IntelligentCommunity.community.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 辖区
 * @Author：段国宏
 * @Date：2024/7/22 11:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RealArea {


    // 辖区 id
    private Long id;
    // 辖区名称
    private String name;
    // 经纬度中心点
    private String centerPoint;
    // 经纬度区域
    private String areaPoint;
    // 父级 id
    private Long parentId;

    // 子集
    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<RealArea> children;

}
